#define _CRT_SECURE_NO_WARNINGS 1
#include  "stack.h"
void test() {
	Stack s;
	StackInit(&s);
	StackPush(&s, 11);
	StackPush(&s, 12);
	printf("%d ", StackTop(&s));

	StackPush(&s, 13);
	StackPush(&s, 14);
	printf("\nStack size is %d\n", StackSize(&s));
	StackPush(&s, 15);
	
	StackPop(&s);
	printf("%d ", StackTop(&s));

	StackPop(&s);
	printf("%d ", StackTop(&s));

	StackPop(&s);
	printf("%d ", StackTop(&s));
	StackPop(&s);
	if(StackEmpty(&s)==true) printf("\nStack is Empty!");

	StackPop(&s);
	if (StackEmpty(&s) == true) printf("\nStack is Empty!");
	StackDestroy(&s);
}
int main() {
	test();
	return 0;
}